package com.nervenets.web.hibernate.domain.user;

import com.nervenets.web.enumeration.AuthStatus;
import com.nervenets.web.hibernate.DomainObject;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.NoArgsConstructor;

import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.Table;

@Entity
@Table(name = "reward_invoices")
@EqualsAndHashCode(callSuper = true)
@Data
@NoArgsConstructor
@AllArgsConstructor
public class RewardInvoice extends DomainObject {
    private long userId;
    @Column(columnDefinition = "text")
    private String flows;
    private String expressName;
    private String expressNumber;
    private String certs;
    private AuthStatus status = AuthStatus.checking;
    private String failedReason;
}
